<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<f:loadBundle basename="demo.bundle.Messages" var="msg"/>

<html>
<head>
	<title>Semantic CBR Code Search</title> 
</head>
<body>
<f:view>

		<rich:tabPanel id="tabPanelBusqueda" binding="#{codeSearchBean.tabPanel}" >
			<rich:tab id="tabBusqueda" label="#{msg.csm_tabForm_label}">
				<jsp:include page="codeSearchForm.jsp" />
			</rich:tab>
			<rich:tab id="tabResultado" label="#{msg.csm_tabList_label}" disabled="true" >
				<jsp:include page="codeSearchList.jsp" />
			</rich:tab>
		</rich:tabPanel>

	    <a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()" />

		<rich:modalPanel id="wait" autosized="true" width="200" height="60"
			moveable="false" resizeable="false">
			<f:facet name="header">
				<h:outputText value="#{msg.modalPanel_title_processing}" />
			</f:facet>
			<h:outputText value="#{msg.modalPanel_label_wait}" />
		</rich:modalPanel>

</f:view>
 </body>
</html>